package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsArReceiptAppliedInt;
import com.yudean.esb.mapper.erp.ErpIdsArReceiptAppliedIntMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsArReceiptAppliedIntDao {

    @Resource
    public ErpIdsArReceiptAppliedIntMapper erpIdsArReceiptAppliedIntMapper;

    public int insertSelective(ErpIdsArReceiptAppliedInt record) {
        return erpIdsArReceiptAppliedIntMapper.insertSelective(record);
    }

    public int batchInsertErpIdsArReceiptAppliedIntData(List<ErpIdsArReceiptAppliedInt> erpIdsArReceiptAppliedIntList) {
        return erpIdsArReceiptAppliedIntMapper.batchInsertErpIdsArReceiptAppliedIntData(erpIdsArReceiptAppliedIntList);
    }

    public int deleteArReceiptAppliedIntByControlId(long controlId) {
        return erpIdsArReceiptAppliedIntMapper.deleteArReceiptAppliedIntByControlId(controlId);
    }
}
